From 23cb3ab4566c412dc08e9e324dc87cd09433c119 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 30 Dec 2025 14:35:50 +0100 Subject: [PATCH] lookingGlass: Drop seat state check after grabs Grabs are non-failable now, we do not need to check for the backend seat actually having been able to perform the request. Part-of: --- js/ui/lookingGlass.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index a165ae271..02cda39fd 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -483,11 +483,6 @@ class ObjInspector extends St.ScrollView { return; const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS}); - if (grab.get_seat_state() !== Clutter.GrabState.ALL) { - Main.popModal(grab); - return; - } - this._grab = grab; this._previousObj = null; this._open = true; @@ -1657,11 +1652,6 @@ class LookingGlass extends St.BoxLayout { return; const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS}); - if (grab.get_seat_state() !== Clutter.GrabState.ALL) { - Main.popModal(grab); - return; - } - this._grab = grab; this.show(); this._open = true; -- 2.39.5